{% extends "base.html" %}
{%block title%}你正在准备分享....{%endblock%}
{% block content %}
<h3>填写分享信息</h3>
<form method="POST" action="" enctype="multipart/form-data">
        {{form.as_p}}
        
        <h4>物品属性</h4>
        <table>
	        <thead>
	            <tr>
		            <th>属性名</th>
		            <th>属性值</th>
	            </tr>
	        </thead>
	        <tbody>
		        <tr class="even">
		            <td><input id="id_form-0-name" type="text" name="form-0-name" maxlength="100" /></td>
		            <td><input id="id_form-0-value" type="text" name="form-0-value" maxlength="500" /></td>
		        </tr>
		        <tr>
		            <td><input id="id_form-1-name" type="text" name="form-1-name" maxlength="100" /></td>
		            <td><input id="id_form-1-value" type="text" name="form-1-value" maxlength="500" /></td>
		        </tr>
	        </tbody>
        </table>
        
        <h4>更多图片</h4>
        <table>
	        <thead>
		        <tr>
		            <th>图片</th>
		            <th>说明</th>
		        </tr>
	        </thead>
	        <tbody>
		        <tr class="even">
		            <td><input type="file" name="form-0-image" id="id_form-0-image" /></td>
		            <td><input id="id_form-0-info" type="text" name="form-0-info" maxlength="100" /></td>
		        </tr>
		        <tr>
		            <td><input type="file" name="form-1-image" id="id_form-1-image" /></td>
		            <td><input id="id_form-1-info" type="text" name="form-1-info" maxlength="100" /></td>
		        </tr>
	        </tbody>
        </table>
        <p class="submit"><input type="submit" value="分享 &rarr;"></p>
</form>
{% endblock %}